# Terkep

OCAML= ocamlopt
OCAMLFLAGS= -I +sdl -I +lablgtk2
OCAMLLD= bigarray.cmxa sdl.cmxa sdlloader.cmxa lablgtk.cmxa lablglade.cmxa unix.cmxa

terkep: terkep.cmx interface.cmx image.cmx MapTools.cmx
	${OCAML} ${OCAMLFLAGS} ${OCAMLLD} -o terkep interface.cmx image.cmx MapTools.cmx environment.cmx terkep.cmx

terkep.cmx: interface.cmx image.cmx MapTools.cmx environment.cmx

interface.ml: interface.glade
	lablgladecc2 interface.glade > interface.ml

#Compilation des modules
.SUFFIXES: .ml .mli .cmx .cmi

.ml.cmx:
	${OCAML} ${OCAMLFLAGS} ${OCAMLLD} -c $<

clean:
	rm -f *~ *.o *.cm? *.tmp terkep interface.ml

# FIN
